import request from "./request";
export const getBanners = (type = 2) =>
  request({
    url: `/banner?type=${type}`,
  });
export const getRecommends = () =>
  request({
    url: "/personalized",
  });

export const getMusicListDetail = (id) =>
  request({
    url: `/playlist/detail?id=${id}`,
  });
export const getAllMusicList = (id, limit = 10, offset = 1) =>
  request({
    url: `/playlist/track/all?id=${id}&limit=${limit}&offset=${offset}`,
  });

export const getLyric = (id = 33894312) =>
  request({
    url: `/lyric?id=${id}`,
  });
